package day4;

import day1.Base.Derived;

public class TestInteger {
    public static void main(String[] args) {
        //int的包装器类型
        int i = 1;
        //基本类型转对象

        //JDK1.5之前
        Integer integer = new Integer(i);

        //JDK1.5+  装箱
        Integer a = 1;
        //拆箱
        int io = a;

        //不支持  Double b = 1;
        Double b2 = new Double(1);


        String string = integer.toString();
        System.out.println("z1:"+string);
        System.out.println(Integer.MAX_VALUE);
        System.out.println(Integer.MIN_VALUE);

        int min = Integer.min(10, -1);
        System.out.println("min:"+min);

        int max = Integer.max(10, -1);
        System.out.println("max:"+max);

        int sum = Integer.sum(10, 20);
        System.out.println("sum"+sum);

        System.out.println("十进制"+Integer.toString(100, 10));
        System.out.println("二进制"+Integer.toString(100, 2));
        System.out.println("八进制"+Integer.toString(100, 8));
        System.out.println(Integer.toBinaryString(100));


        String s = "100";
        System.out.println(Integer.parseInt(s));
    }


}
